#define _CRT_SECURE_NO_WARNINGS
#include"DoubleListNode.h"

void ListTest()
{
	DLN* phead = NULL;
	DbleInit(&phead);
	DbleTailAdd(phead, 1);
	DbleTailAdd(phead, 2);
	DbleTailAdd(phead, 3);
	DLNPrint(phead);
	DbleHeadAdd(phead, 4);
	DLNPrint(phead);
	/*DbleHeadDel(phead);
	DLNPrint(phead);
	DbleTailDel(phead);
	DLNPrint(phead);*/
	DLN* find = DbleSearch(phead, 2);
	if (find != NULL)
	{
		printf("%d\n", find->data);
	}
	DbleModify(phead, 2, 5);
	DLNPrint(phead);
	DbleStroy(phead);
}


int main()
{
	ListTest();
	return 0;
}